#-------------------------------------------------
#
# Project created by QtCreator 2011-07-31T06:21:35
#
#-------------------------------------------------

#-------------------------------------------------
#
# TODO list
#
# - add font resize
# - add syntax highlighting for spin
# - clean up mainwindow class
# - user options should have way to change syntax highlighting?
# - set default compiler properties for windows install?
#   make the compiler and include path properties default settings.
#
#-------------------------------------------------

QT += core
QT += widgets

QT += printsupport

TARGET = PropellerIDE
TEMPLATE = app

CONFIG  += exceptions

DEFINES += QEXTSERIALPORT_LIB
DEFINES += IDEVERSION="0"
DEFINES += MINVERSION=1

# include quazip
SUBDIRS += ../quazip-0.6.2/quazip
INCLUDEPATH += ../quazip-0.6.2/quazip
INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib

# ENABLE_AUTO_ENTER turns on AUTO-INDENT
DEFINES += ENABLE_AUTO_ENTER
# SPIN_AUTOCOMPLETE turns on spinny-sense
DEFINES += SPIN_AUTOCOMPLETE

SOURCES += main.cpp\
    mainwindow.cpp \
    StatusDialog.cpp \
    highlighter.cpp \
    treemodel.cpp \
    treeitem.cpp \
    XBasicModel.cpp \
    EzBuilder.cpp \
    SpinBuilder.cpp \
    XBasicBuilder.cpp \
    qextserialport.cpp \
    PortListener.cpp \
    terminal.cpp \
    properties.cpp \
    console.cpp \
    qextserialenumerator.cpp \
    PortConnectionMonitor.cpp \
    editor.cpp \
    highlightSpin.cpp \
    spinparser.cpp \
    highlightC.cpp \
    terminal2.cpp \
    termprefs.cpp \
    zipper.cpp

HEADERS  += mainwindow.h \
    StatusDialog.h \
    highlighter.h \
    treemodel.h \
    treeitem.h \
    XBasicModel.h \
    EzBuilder.h \
    SpinBuilder.h \
    XBasicBuilder.h \
    qextserialport.h \
    qextserialenumerator.h \
    PortListener.h \
    terminal.h \
    properties.h \
    console.h \
    PortConnectionMonitor.h \
    qextserialenumerator_p.h \
    editor.h \
    highlightSpin.h \
    spinparser.h \
    highlightC.h \
    propertycolor.h \
    Sleeper.h \
    terminal2.h \
    termprefs.h \
    zipper.h

OTHER_FILES +=

FORMS += \
    TermPrefs.ui

RESOURCES += \
    resources.qrc

unix {
    SOURCES       += qextserialport_unix.cpp
#    LIBS          += -lquazip -lz
}
unix:!macx:SOURCES += qextserialenumerator_unix.cpp
macx {
  SOURCES          += qextserialenumerator_osx.cpp
  LIBS             += -framework IOKit -framework CoreFoundation
#  LIBS             += -L../quazip-0.6.2/quazip -lquazip -lz
}
win32 {
  SOURCES          += qextserialport_win.cpp
  SOURCES          += qextserialenumerator_win.cpp
# DEFINES          += WINVER=0x0501 # needed for mingw to pull in appropriate dbt business...probably a better way to do this
  LIBS             += -lsetupapi
# LIBS             += -lquazip -lz
}

#
# Quazip is broken for windows. Enable later.
#

#win32:CONFIG(debug, debug|release): LIBS += -L../quazip-0.6.2/quazip/debug
#win32:CONFIG(release, debug|release): LIBS += -L../quazip-0.6.2/quazip/release

#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../quazip-0.6.2/quazip/release
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../quazip-0.6.2/quazip/debug
#else:unix:CONFIG(release, debug|release): LIBS += -L$$PWD/../quazip-0.6.2/quazip/release
#else:unix:CONFIG(debug, debug|release): LIBS += -L$$PWD/../quazip-0.6.2/quazip/debug

#LIBS += -L$$PWD/../build-quazip-Desktop_Qt_5_2_1_clang_64bit-Debug/quazip/
#LIBS += -L$$PWD/../build-quazip-Desktop_Qt_5_2_1_clang_64bit-Debug/quazip/

#INCLUDEPATH += $$PWD/../quazip-0.6.2/quazip
#DEPENDPATH  += $$PWD/../quazip-0.6.2/quazip

